#ifndef CAPPENDER_H
#define CAPPENDER_H

#include <QDataStream>

class CAppender
{
public:
    explicit CAppender(QByteArray *bytes);
    ~CAppender();

    bool appendUInt8(quint8 number);
    bool appendUInt16(quint16 number);
    bool appendUInt32(quint32 number);
    bool appendUInt8(const QString &number);
    bool appendUInt16(const QString &number);
    bool appendUInt32(const QString &number);

    bool appendBin(const QString &number);
    bool appendHex(const QString &number);

    bool appendSepDec(const QString &number,
                      const QString &sep, int tokc);

private:
    QDataStream *m_stream;
};

#endif // CAPPENDER_H
